package com.example.commonmybatisplus.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.example.commonmybatisplus.enums.GradeEnum;
import lombok.*;

import java.io.Serializable;

/**
 * @Author ifredomvip@gmail.com
 * @Date 2022/5/27 16:23
 * @Version 1.0.0
 * @Description
 **/

@AllArgsConstructor
@NoArgsConstructor
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
@ToString
@TableName("t_user")
public class UserEntity implements Serializable {

    @TableId(value = "uid")
    private Long id;
    @TableField("user_name")
    private String name;
    private int sex;
    private int age;
    @TableLogic
    private int isDel;

    private GradeEnum grade;

}
